package com.ruoyi.system.domain.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;
import java.util.List;

public class BlsDto {

    @Data
    @ApiModel("查询档案")
    public static class Query {
//        @ApiModelProperty("档案ID")
//        private Long id;
        @ApiModelProperty("姓名")
        private String name;
        @ApiModelProperty("身份证")
        private String idCard;
        private String zyh;
//        @ApiModelProperty("code集合")
//        private List<String> codeList;
//        @ApiModelProperty("子表数据")
//        private List<PmsArchivesDto.ArchivesRecordDto> recordDtoList;

        private String zdbm;
        private String zzmc;

        private List<Long> idList;

//        public List<PmsArchivesDto.ArchivesRecordDto> getRecordDtoList(){
//            if (CollectionUtil.isEmpty(recordDtoList)) {
//                return recordDtoList;
//            }
//            List<PmsArchivesDto.ArchivesRecordDto> list = new ArrayList<>();
//            for (PmsArchivesDto.ArchivesRecordDto archivesRecordDto : recordDtoList) {
//                if (StrUtil.isNotBlank(archivesRecordDto.getCode()) && StrUtil.isNotEmpty(archivesRecordDto.getAnswer())) {
//                    list.add(archivesRecordDto);
//                }
//            }
//            return list;
//        }
//
//        public List<String> getCodeList() {
//            if (CollectionUtil.isNotEmpty(codeList)) {
//                codeList.remove("");
//                return codeList;
//            }
//            return codeList;
//        }
    }

    @Data
    @ApiModel("导出治疗档案")
    public static class Export {

    }

    @Data
    @ApiModel("BlsDto - BlsZlInfoDto")
    public static class BlsZlInfoDto{
        @ApiModelProperty("ID")
        private Long id;
        @ApiModelProperty("项目ID")
        private Long projectId;
        @ApiModelProperty("人口学ID")
        private Long patientId;
        @ApiModelProperty("住院号")
        private String zyh;
        @ApiModelProperty("主要医疗付费方式")
        private String ylfffsdm;
        @ApiModelProperty("入院途径")
        private String rytj;
        @ApiModelProperty("住院日期")
        private Date rysj;
        @ApiModelProperty("出院日期")
        private Date cysj;
        @ApiModelProperty("住院年龄（计算（住院时间-出生日期）")
        private Integer zynl;
        @ApiModelProperty("住院天数")
        private String sjzyts;
        @ApiModelProperty("离院方式")
        private String lyfsdm;
        @ApiModelProperty("住院总费用")
        private String zfy;
        @ApiModelProperty("主要诊断名称")
        private String zyzdmc;
        @ApiModelProperty("主要诊断编码")
        private String zyzdbm;
        @ApiModelProperty("诊断名称")
        private String zdmc;
        @ApiModelProperty("诊断编码")
        private String zdbm;
        @ApiModelProperty("手术名称")
        private String ssmc;
        @ApiModelProperty("手术编码")
        private String ssbm;
        @ApiModelProperty("手术日期")
        private Date ssrq;
        @ApiModelProperty("备注")
        private String remark;
        @ApiModelProperty("创建者")
        private String createBy;
        @ApiModelProperty("创建时间")
        private Date createTime;
        @ApiModelProperty("更新者")
        private String updateBy;
        @ApiModelProperty("修改时间")
        private Date updateTime;
    }

    @Data
    @ApiModel("BlsDto - BlsZlInfoDto")
    public static class BlsJzInfoDto{
        @ApiModelProperty("ID")
        private Long id;
        @ApiModelProperty("所属项目")
        private Long projectId;
        @ApiModelProperty("人口学ID")
        private Long patientId;
        @ApiModelProperty("门/急诊号")
        private String jzh;
        @ApiModelProperty("卒中医生编号")
        private String czysNo;
        @ApiModelProperty("办理住院手续时间")
        private Date zyTime;
        @ApiModelProperty("诱因")
        private String yy;
        @ApiModelProperty("其他诱因")
        private String qtYy;
        @ApiModelProperty("症状")
        private String zz;
        @ApiModelProperty("其他症状")
        private String qtZz;
        @ApiModelProperty("到院时间")
        private Date dyTime;
        @ApiModelProperty("通知卒中医生时间")
        private Date tzTime;
        @ApiModelProperty("是否醒后卒中")
        private Byte isXhcz;
        @ApiModelProperty("发病时间")
        private Date fbTime;
        @ApiModelProperty("是否院内卒中")
        private Byte isYncz;
        @ApiModelProperty("最后正常时间")
        private Date zhzcTime;
        @ApiModelProperty("来院方式")
        private String lyfs;
        @ApiModelProperty("神内医生到场时间")
        private Date snDcTime;
        @ApiModelProperty("到达病房")
        private Date ddBfTime;
        @ApiModelProperty("急诊科医生到场时间")
        private Date jzDcTime;
        @ApiModelProperty("备注")
        private String remark;
        @ApiModelProperty("创建者")
        private String createBy;
        @ApiModelProperty("创建时间")
        private Date createTime;
        @ApiModelProperty("更新者")
        private String updateBy;
        @ApiModelProperty("修改时间")
        private Date updateTime;
    }
}
